<?php

class ChatboxMessage extends AppModel {
    var $virtualFields = array(
        'nickname' => 'IF(ChatboxMessage.guest>0, ChatboxMessage.nick, User.username)'
    );

    var $belongsTo = array('User');
    //var $actsAs = array("CounterCache");
}

?>
